package com.DuoXianCheng.D05;

public class A01 {
    public static void main(String[] args) {
        /*
        * setPriority(int newPriorty)     设置线程的优先级
        * final int getPriority()         获取线程的优先级
        * */
        
        // 创建要执行的参数对象
        C01 c = new C01();
        // 创建线程对象
        Thread t1 = new Thread(c, "A");
        Thread t2 = new Thread(c, "B");
        t1.setPriority(1);
        t2.setPriority(10);
        
        t1.start();
        t2.start();
    }
}
